package com.qys.livesMall.system.controller.app;

import com.qys.livesMall.common.result.R;
import com.qys.livesMall.system.model.vo.sys.SysLanguageTextVO;
import com.qys.livesMall.system.service.SysLanguageTextService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app/language/text")
@Tag(description = "app-多文本配置", name = "APPLanguageTextController")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class APPLanguageTextController {

    private final SysLanguageTextService sysLanguageTextService;
    @Operation(summary = "查询详情")
    @GetMapping(value = "/info/{typeId}")
    public R<?> info(@PathVariable String typeId){
        return R.ok(sysLanguageTextService.getInfoBytypeId(typeId));
    }
}
